<script setup lang="ts">
import { ref,onMounted} from 'vue'
import axios from 'axios'

const tableData = ref([])

onMounted(() => {
    axios.get('http://localhost:8080/admin/selectAllByStatus').then((response) => {
        tableData.value = response.data
    })
})
</script>

<template>
  <el-table :data="tableData" style="width: 100%">
    <el-table-column prop="id" label="编号" width="180" />
    <el-table-column prop="username" label="账户名" width="180" />
    <el-table-column prop="merchantName" label="店铺名" width="180" />
    <el-table-column prop="applyTime" label="提交时间" width="180" />
    <el-table-column prop="isExamine" label="审核状态" width="180" />
    <el-table-column label="操作" width="180">
        <template #default="scope">
            <el-button @click="handlePass(scope.row)" type="success" size="small">详情</el-button>
        </template>
    </el-table-column>
  </el-table>
</template>

<style scoped>

</style>
